package com.honglv.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Auther: 生
 * @Date: 2024/03/17/19:23
 * @Description:用户
 */
@Data
@Slf4j
@AllArgsConstructor
@NoArgsConstructor
@TableName
@Builder
public class User implements Serializable {

    private static final long serialVersionUID = 1L;


    private Long id;

    //昵称
    private String username;

    //密码
    private String password;

    //手机
    private Long phone;

    //姓名
    private String name;

    //年龄
    private Integer age;

    //性别 女 0 男 1
    private Integer sex;

    //身份证号

    private String idNumber;

    //头像
    private String avatar;

    //微信用户唯一标识
    private String openid;

    @TableField(fill = FieldFill.INSERT)
    //创建时间
    private LocalDateTime createTime;
}
